|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.support.ActionContextWrapper
public abstract class ActionContextWrapper
A wrapper for the IActionContext interface.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.vtp.framework.core.IActionContext |
|---|
STATE_AFTER, STATE_BEFORE, STATE_DURING |
| Fields inherited from interface org.eclipse.vtp.framework.core.IReporter |
|---|
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, SEVERITY_WARN |
| Constructor Summary | |
|---|---|
protected |
ActionContextWrapper()
Creates a new ActionContextWrapper. |
| Method Summary | |
|---|---|
void |
clearAttribute(java.lang.String attributeName)
Clears the value of a session-level attribute. |
void |
clearParameter(java.lang.String parameterName)
Clears the value of the execution-level parameter with the specified name. |
IActionResult |
createResult(java.lang.String resultName)
Creates an action result with the specified name. |
IActionResult |
createResult(java.lang.String resultName,
java.lang.Throwable failureCause)
Creates an action result with the specified name. |
void |
debug(java.lang.String message)
Creates and publishes a debug log entry with the specified attributes. |
void |
debug(java.lang.String[] categories,
java.lang.String message)
Creates and publishes a debug log entry with the specified attributes. |
void |
debug(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a debug log entry with the specified attributes. |
void |
debug(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a debug log entry with the specified attributes. |
void |
error(java.lang.String message)
Creates and publishes an error log entry with the specified attributes. |
void |
error(java.lang.String[] categories,
java.lang.String message)
Creates and publishes an error log entry with the specified attributes. |
void |
error(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an error log entry with the specified attributes. |
void |
error(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an error log entry with the specified attributes. |
protected abstract IActionContext |
getActionContext()
Returns the wrapped action context. |
java.lang.String |
getActionID()
Returns the ID of the current action. |
java.lang.String |
getActionName()
Returns the name of the current action. |
int |
getActionState()
Returns the state of the current action. |
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns the value of a session-level attribute with the specified name or null if no such attribute exists. |
java.lang.String[] |
getAttributeNames()
Returns the names of all the session-level attributes currently registered. |
java.lang.String |
getExecutionID()
Returns the ID of this execution. |
java.lang.String |
getParameter(java.lang.String parameterName)
Returns the value of the execution-level parameter with the specified name or null if no such parameter exists. |
java.lang.String[] |
getParameterNames()
Returns the names of the parameters available to the execution sequence. |
java.lang.String[] |
getParameters(java.lang.String parameterName)
Returns the values of the execution-level parameter with the specified name or null if no such parameter exists. |
java.lang.String |
getProcessID()
Returns the ID of this process. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns the value of the process-level configuration property with the specified name or null if no such property exists. |
java.lang.String |
getSessionID()
Returns the ID of the current session. |
void |
info(java.lang.String message)
Creates and publishes an informational log entry with the specified attributes. |
void |
info(java.lang.String[] categories,
java.lang.String message)
Creates and publishes an informational log entry with the specified attributes. |
void |
info(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an informational log entry with the specified attributes. |
void |
info(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an informational log entry with the specified attributes. |
boolean |
isDebugEnabled()
Returns true if the debug severity level is enabled. |
boolean |
isErrorEnabled()
Returns true if the error severity level is enabled. |
boolean |
isInfoEnabled()
Returns true if the informational severity level is enabled. |
protected boolean |
isReservedIdentifier(java.lang.String identifier)
Returns true if the specified identifier is implemented by the context. |
boolean |
isSeverityEnabled(int severity)
Returns true if the specified severity level is enabled. |
boolean |
isWarnEnabled()
Returns true if the warning severity level is enabled. |
java.lang.Class |
loadClass(java.lang.String className)
Loads a class visible to the process. |
void |
log(int severity,
java.lang.String message)
Creates and publishes a log entry with the specified attributes. |
void |
log(int severity,
java.lang.String[] categories,
java.lang.String message)
Creates and publishes a log entry with the specified attributes. |
void |
log(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a log entry with the specified attributes. |
void |
log(int severity,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a log entry with the specified attributes. |
java.lang.Object |
lookup(java.lang.String identifier)
Looks up the service selected for the specified identifier or null if no such service exists. |
java.lang.Object[] |
lookupAll(java.lang.String identifier)
Returns an array containing all the services registered under the specified identifier. |
void |
report(int severity,
java.lang.String message)
Creates and publishes a reporting entry with the specified attributes. |
void |
report(int severity,
java.lang.String[] categories,
java.lang.String message)
Creates and publishes a reporting entry with the specified attributes. |
void |
report(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a reporting entry with the specified attributes. |
void |
report(int severity,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a reporting entry with the specified attributes. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets the value of a session-level attribute or clears it if the supplied value is null. |
void |
setParameter(java.lang.String parameterName,
java.lang.String value)
Sets the value of the execution-level parameter with the specified name or clears it if the value is null. |
void |
setParameters(java.lang.String parameterName,
java.lang.String[] values)
Sets the values of the execution-level parameter with the specified name or clears them if the value is null or empty. |
void |
warn(java.lang.String message)
Creates and publishes a warning log entry with the specified attributes. |
void |
warn(java.lang.String[] categories,
java.lang.String message)
Creates and publishes a warning log entry with the specified attributes. |
void |
warn(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a warning log entry with the specified attributes. |
void |
warn(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a warning log entry with the specified attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ActionContextWrapper()
| Method Detail |
|---|
protected boolean isReservedIdentifier(java.lang.String identifier)
identifier - The identifier to check.
protected abstract IActionContext getActionContext()
public boolean isSeverityEnabled(int severity)
IReporter
isSeverityEnabled in interface IReporterseverity - The severity to check.
public void report(int severity,
java.lang.String message)
IReporter
report in interface IReporterseverity - The severity of the report.message - The message associated with the report or null
to not include a message.
public void report(int severity,
java.lang.String message,
java.util.Dictionary properties)
IReporter
report in interface IReporterseverity - The severity of the report.message - The message associated with the report or null
to not include a message.properties - The properties of the report or null if no
properties are specified.
public void report(int severity,
java.lang.String[] categories,
java.lang.String message)
IReporter
report in interface IReporterseverity - The severity of the report.categories - The categories the report pertains to or
null if no catagories are related.message - The message associated with the report or null
to not include a message.
public void report(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
IReporter
report in interface IReporterseverity - The severity of the report.categories - The categories the report pertains to or
null if no catagories are related.message - The message associated with the report or null
to not include a message.properties - The properties of the report or null if no
properties are specified.
public void log(int severity,
java.lang.String message)
ILogger
log in interface ILoggerseverity - The severity of the log entry.message - The message associated with the log entry or
null to not include a message.
public void log(int severity,
java.lang.String message,
java.util.Dictionary properties)
ILogger
log in interface ILoggerseverity - The severity of the log entry.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void log(int severity,
java.lang.String[] categories,
java.lang.String message)
ILogger
log in interface ILoggerseverity - The severity of the log entry.categories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void log(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
log in interface ILoggerseverity - The severity of the log entry.categories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isErrorEnabled()
ILogger
isErrorEnabled in interface ILoggerpublic void error(java.lang.String message)
ILogger
error in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void error(java.lang.String message,
java.util.Dictionary properties)
ILogger
error in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void error(java.lang.String[] categories,
java.lang.String message)
ILogger
error in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void error(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
error in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isWarnEnabled()
ILogger
isWarnEnabled in interface ILoggerpublic void warn(java.lang.String message)
ILogger
warn in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void warn(java.lang.String message,
java.util.Dictionary properties)
ILogger
warn in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void warn(java.lang.String[] categories,
java.lang.String message)
ILogger
warn in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void warn(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
warn in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isInfoEnabled()
ILogger
isInfoEnabled in interface ILoggerpublic void info(java.lang.String message)
ILogger
info in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void info(java.lang.String message,
java.util.Dictionary properties)
ILogger
info in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void info(java.lang.String[] categories,
java.lang.String message)
ILogger
info in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void info(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
info in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isDebugEnabled()
ILogger
isDebugEnabled in interface ILoggerpublic void debug(java.lang.String message)
ILogger
debug in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void debug(java.lang.String message,
java.util.Dictionary properties)
ILogger
debug in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void debug(java.lang.String[] categories,
java.lang.String message)
ILogger
debug in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void debug(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
debug in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public java.lang.Object lookup(java.lang.String identifier)
throws java.lang.NullPointerException
IContextnull if no such service exists.
lookup in interface IContextidentifier - The identifier of the service to look up.
null if no such service exists.
java.lang.NullPointerException - If the supplied identifier is
null.
public java.lang.Object[] lookupAll(java.lang.String identifier)
throws java.lang.NullPointerException
IContext
lookupAll in interface IContextidentifier - The identifier of the services to look up.
java.lang.NullPointerException - If the supplied identifier is
null.public java.lang.String getProcessID()
IProcessContext
getProcessID in interface IProcessContext
public java.lang.Object getProperty(java.lang.String propertyName)
throws java.lang.NullPointerException
IProcessContextnull if no such property exists.
getProperty in interface IProcessContextpropertyName - The name of the configuration property to return.
null if no such property exists.
java.lang.NullPointerException - If the supplied property name is
null.
public java.lang.Class loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.NullPointerException
IProcessContext
loadClass in interface IProcessContextclassName - The name of the class to load.
java.lang.ClassNotFoundException - If a class with the specified name cannot be
found.
java.lang.NullPointerException - If the supplied class name is
null.public java.lang.String getSessionID()
ISessionContext
getSessionID in interface ISessionContextpublic java.lang.String[] getAttributeNames()
ISessionContext
getAttributeNames in interface ISessionContext
public java.lang.Object getAttribute(java.lang.String attributeName)
throws java.lang.NullPointerException
ISessionContextnull if no such attribute exists.
getAttribute in interface ISessionContextattributeName - The name of the session attribute to return.
null if no such attribute exists.
java.lang.NullPointerException - If the supplied attribute name is
null.
public void setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
throws java.lang.NullPointerException
ISessionContextnull.
setAttribute in interface ISessionContextattributeName - The name of the session attribute to set.attributeValue - The value to set the attribute to or
null to clear the attribute.
java.lang.NullPointerException - If the supplied attribute name is
null.
public void clearAttribute(java.lang.String attributeName)
throws java.lang.NullPointerException
ISessionContext
clearAttribute in interface ISessionContextattributeName - The name of the session attribute to clear.
java.lang.NullPointerException - If the supplied attribute name is
null.public java.lang.String getExecutionID()
IExecutionContext
getExecutionID in interface IExecutionContextpublic java.lang.String[] getParameterNames()
IExecutionContext
getParameterNames in interface IExecutionContext
public java.lang.String getParameter(java.lang.String parameterName)
throws java.lang.NullPointerException
IExecutionContextnull if no such parameter exists.
getParameter in interface IExecutionContextparameterName - The name of the parameter to return.
null if no such parameter exists.
java.lang.NullPointerException - If the supplied parameter name is
null.
public java.lang.String[] getParameters(java.lang.String parameterName)
throws java.lang.NullPointerException
IExecutionContextnull if no such parameter exists.
getParameters in interface IExecutionContextparameterName - The name of the parameter to return.
null if no such parameter exists.
java.lang.NullPointerException - If the supplied parameter name is
null.
public void setParameter(java.lang.String parameterName,
java.lang.String value)
throws java.lang.NullPointerException
IExecutionContextnull.
setParameter in interface IExecutionContextparameterName - The name of the parameter to set.value - The value of the execution-level parameter with the specified
name or null to clear the value.
java.lang.NullPointerException - If the supplied parameter name is
null.
public void setParameters(java.lang.String parameterName,
java.lang.String[] values)
throws java.lang.NullPointerException
IExecutionContextnull or empty.
setParameters in interface IExecutionContextparameterName - The name of the parameters to set.values - The values of the execution-level parameter with the
specified name or null or to clear the values.
java.lang.NullPointerException - If the supplied parameter name is
null.
public void clearParameter(java.lang.String parameterName)
throws java.lang.NullPointerException
IExecutionContext
clearParameter in interface IExecutionContextparameterName - The name of the parameter to clear.
java.lang.NullPointerException - If the supplied parameter name is
null.public java.lang.String getActionID()
IActionContext
getActionID in interface IActionContextpublic java.lang.String getActionName()
IActionContext
getActionName in interface IActionContextpublic int getActionState()
IActionContext
getActionState in interface IActionContextpublic IActionResult createResult(java.lang.String resultName)
IActionContext
createResult in interface IActionContextresultName - The name of the result to create or null
to create an undefined result.
public IActionResult createResult(java.lang.String resultName,
java.lang.Throwable failureCause)
IActionContext
createResult in interface IActionContextresultName - The name of the result to create or null
to create an undefined result.failureCause - The cause of the failure the action result represents
or null to not specify a failure cause.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||